﻿namespace Entity.Finance.View.MonthWages
{
    /// <summary>
    /// 工资表视图
    /// </summary>
    public class MonthWagesView
    {
        /// <summary>
        /// 工资 ID
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 工资编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 年份
        /// </summary>
        public string Year { get; set; }

        /// <summary>
        /// 月份
        /// </summary>
        public string Month { get; set; }

        /// <summary>
        /// 总支出
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 工资表的创建日期（格式化）
        /// </summary>
        public string CreateTimeFormatted => CreateTime.ToString("yyyy-MM-dd HH:mm:ss");
    }
}
